﻿var Utilities = {
	createNew: function() {

		var utili = {};

		utili.getQueryItemName = function(type) {
			var itemValue = '';
			switch (type) {
				/*----------------------------------个人-------------------------------------*/
				case 'C1':
				case 'bank_card_report':
					itemValue = '个人银行卡报告';
					break;
				case 'C2':
					itemValue = '个人身份证照片';
					break;
				case 'C3':
					itemValue = '个人学历学籍';
					break;
				case 'C4':
					itemValue = '个人职业资格证书';
					break;
				case 'C5':
					itemValue = '银行卡交易地点';
					break;
				case 'C6':
				case 'auth_valid':
					itemValue = '身份认证查询';
					break;
				case 'C7':
					itemValue = '失信被执行人信息';
					break;
				case 'C8':
					itemValue = 'p2p网贷黑名单';
					break;
					/*----------------------------------企业-------------------------------------*/
				case 'B1':
					itemValue = '商户银行卡报告';
					break;
				case 'B2':
					itemValue = '商户账单真伪认证';
					break;
				case 'B3':
					itemValue = '企业判决文书';
					break;
				case 'B4':
					itemValue = '企业p2p网贷黑名单';
					break;
				case 'B5':
					itemValue = '查询商户账单真伪认证';
					break;
				case 'B6':
					itemValue = '失信执行信息';
					break;
				default:
					break;
			}
			return itemValue;
		};
		utili.ResultItem = {
			/*----------------------个人银行卡报告（C1）----------------------*/
			bank_card_report: {
				name: "个人消费报告",
				ID: "C1",
			},
			repaymentAbility: {
				name: "月还贷能力区间",
				cCount: 1
			},
			indexProperty: {
				name: "资产指标",
				cCount: 3,
				pName: {
					hasHouse: "是否有房产",
					hasCar: "是否有车",
					housePurTime: "房产预估购买时间",
					carPurTime: "汽车预估购买时间",
					houseValue: "房产预估价值",
					carValue: "汽车预估价值",
				}
			},
			indexTransBehavior: {
				name: "交易行为特征",
				cCount: 3,
				pName: {
					city: "常住城市",
					employed: "是否在职",
					freeRegion: "非工作时间消费区域",
					workRegion: "工作时间消费区域",
					
//					businessTrip: "有无出差",
//					marriageConsume: "有无婚庆消费",					
//					unEmployed: "是否失业",
//					childInvest: "有无母婴/教育投资",
//					nightConsume: "有无夜消费",
				}
			},
			indexMonthConsumes: {
				name: "每月消费状况",
				cCount: 3,
				pName: {
					month: "月",
					amount: "消费金额（元）",
					count: "消费笔数",
//					amountRanking: "消费金额在本市的排名",
//					countRanking: "消费笔数在本市的排名",
				}
			},
			indexConsumeCities: {
				name: "消费地域分布",
				cCount: 3,
				pName: {
					name: "城市",
					amount: "消费金额（元）",
					count: "消费比数",
				}
			},
			indexConsumeCategories: {
				name: "消费大类分布",
				cCount: 3,
				pName: {
					name: "类别名",
					amount: "消费金额（元）",
					count: "消费笔数",
				}
			},
			indexTransCredits: {
				name: "信用相关交易统计",
				cCount: 3,
				pName: {
					name: "类型",
					amount: "消费金额（元）",
					count: "消费笔数",
				}
			},
			/*----------------------个人身份证照片（C2）----------------------*/
			id_photo: {
				name: "个人身份证认证",
				cCount: 3,
				ID: "C2",
				pName: {
					result: "认证结果",
					message: "结果信息",
					name: "姓名",
					cid: "身份证号码",
					idCardPhoto: "身份证照片",
				}
			},
			/*----------------------个人学历学籍（C3）----------------------*/
			education: {
				name: "个人学历学籍信息",
				cCount: 3,
				ID: "C3",
				pName: {
					name: "姓名",
					cid: "身份证号码",
					graduate: "毕业院校",
					educationDegree: "学历",					
					specialityName: "专业",
					enrolDate: "入学时间",
					graduateTime: "毕业时间",
					studyResult: "毕业结论",
					studyStyle: "学历类型",
					idCardPhoto: "照片",
				}
			},
			/*----------------------个人职业资格证书（C4）----------------------*/
			professional_certs: {
				name: "个人职业资格证书",
				ID: "C4",
				cCount: 3,
				pName: {
					cid: "证书编号",
					clevel: '证书级别',
					name: "姓名",
					certificateID: "身份证号码",
					issueDate: "颁证日期",
					occupation: "证书职业名称",
					operationMark: "上机成绩",
					submitOrgName: "证书上报单位",
					textMark: "笔试成绩",
				}
			},

			/*----------------------个人身份证照片（C5）----------------------*/
			trans_location_stat: {
				name: "银行卡交易地点统计",
				ID: "C5",
				pName: {
					locations: "地址",
					locations: "最后交易地址",
				}
			},
			locations: {
				name: "地址",
				pName: {
					province_city_district_road_address: "详细地址",
					firstTransTime: "首次交易时间",
					count: "次数",
					hotelCount: "旅馆次数"
				},
			},
			lastTrans: {
				name: "最后交易地址",
				pName: {
					province_city_district_road_address: "详细地址",
					transDate: "交易时间",
					isHotel: "是否旅馆"
				},
			},
			/*----------------------个人身份证照片（C6）----------------------*/
			auth_valid: {
				name: "身份认证查询",
				ID: "C6",
				cCount: 3,
				pName: {
					stat: "状态",
					resMsg: "描述"
				}
			},
			/*----------------------个人失信被执行人信息（C7）----------------------*/
			dishonesty: {
				name: "个人失信信息",
				ID: "C7",
				cCount: 5,
				pName: {
					is_have:"是否有失信信息",
					all_amount:"涉及金额（元）",
					all_count:"失信次数",
					performance_amount:"失信未执行金额（元）", 
					performance_count:"失信未执行次数",					
				}
			},
			/*----------------------个人失信被执行人信息（C8）----------------------*/
			p2p_black: {
				name: "个人网贷黑名单",
				ID: "C8",
				cCount: 4,
				pName: {
					all_count:"违约次数", 
					all_over_amount:"违约金额（元）",
					is_have:"是否属于黑名单用户", 
					not_return_amount:"至今未缴金额（元）",
				}
			},
			/*----------------------商户银行卡报告（B1）----------------------*/
			merchant_report: {
				name: "商户银联POS报告",
				ID: "B1",
				cCount: 3
			},
			indexAbnormal: {
				name: "异常交易指标",
				cCount: 12,
				pName: {
					reverseTransAmount: "反向交易金额（元）",
					reverseTransCount: "反向交易笔数",
					top5TransAmountProp: "交易金额前五客户的金额占比",
					top5TransCountProp: "交易金额前五客户的笔数占比",
					creditCardTransAmount: "贷记卡的交易总金额（元）",
					creditCardTransCount: "贷记卡的交易总笔数",
					debitCardTransAmount: "借记卡的交易总金额（元）",
					debitCardTransCount: "借记卡的交易总笔数",
					abnormalTimeTransAmount: "非正常时间的交易总金额（元）",
					abnormalTimeTransCount: "非正常时间的交易总笔数",
					transFailedAmount: "交易失败金额（元）",
					transFailedCount: "交易失败笔数",
				}
			},
			indexArea: {
				name: "客户地域分布",
				cCount: 3,
				pName: {
					customerType: "客户类型（按地域）",
					amountProp: "金额占比",
					countProp: "交易笔数占比",
					personProp: "交易人数占比",
				}
			},
			indexChange: {
				name: "经营变化趋势",
				cCount: 3,
				pName: {
					weekTransAmountGrowthRate: "交易金额周均增长率",
					weekTransCountGrowthRate: "交易笔数周均增长率",
					weekTransAmounts: "每周交易金额（元）",
					weekTransCounts: "每周交易笔数",
				}
			},
			indexChange: {
				name: "经营变化趋势",
				cCount: 3,
				pName: {
					weekTransAmountGrowthRate: "交易金额周均增长率",
					weekTransCountGrowthRate: "交易笔数周均增长率",
					weekTransAmounts: "每周交易金额（元）",
					weekTransCounts: "每周交易笔数",
				}
			},
			indexContrast: {
				name: "本市同行业对比",
				cCount: 3,
				pName: {
					monthAmount: "月交易金额（元）",
					monthAmountRank: "月交易金额在本市同行业中的排名",
					monthCount: "月交易笔数",
					monthCountRank: "月交易笔数在本市同行业中的排名",
				}
			},
			indexCore: {
				name: "核心经营指标",
				cCount: 3,
				pName: {
					countPrice: "笔单价（元）",
					monthDaysAvg: "月均交易天数",
					transAmountTotal: "交易总金额（元）",
					transCount: "交易总笔数",
					transPersonCount: "交易总人数",
				}
			},
			indexLoyalty: {
				name: "客户忠诚度",
				cCount: 3,
				pName: {
					customerType: "客户类型（按忠诚度）",
					amountProp: "金额占比",
					countProp: "交易笔数占比",
					personProp: "交易人数占比",
				}
			},
			indexStability: {
				name: "经营稳定性指标",
				cCount: 3,
				pName: {
					weekLowThanAvgCount: "低于周均交易金额的周数",
					weekLatelyLowThanAvgCount: "最近的连续低于周均交易金额的周数",
					transAmountHighestTendays: "交易额峰值常见旬（1.上旬 2.中旬 3.下旬）",
					weekTransAmountMedian: "周交易额中值",
					weekTransAmountAvgCv: "周均交易金额变异系数",
					weekTransCountAvgCv: "周均交易笔数变异系数",
					monthTransDaysAvgCv: "月均交易天数变异系数",
				}
			},
			repaymentAbility: {
				name: "月还贷能力区间",
				cCount: 3,
			},
			/*----------------------商户银行卡报告（B2）----------------------*/
			merchant_verify: {
				name: "商户账单真伪认证",
				cCount: 3,
				ID: "B2",
				pName: {
					transTime: "交易时间",
					transAmount: "交易金额（单位分）",
					card: "卡号",
				}
			},
			/*----------------------判决文书（B3）----------------------*/
			judgement: {
				name: "法院判决信息",
				cCount: 3,
				ID: "B3",
				pName: {
					id: "文书编号",
					content: "匹配文书内容",
				}
			},
			/*----------------------个人失信被执行人信息（B4）----------------------*/
			//			p2p_black:{
			//				name: "p2p网贷黑名单",
			//				ID:"B4",
			//				cCount: 3,
			//				pName: {
			//					entityName:"主体名称",
			//					entityId:"主体代码", 
			//					address:"证件地址", 
			//					gender:"性别", 
			//					age:"年龄", 
			//					orgName:"单位名称", 
			//					orgAddress:"单位地址", 
			//					phone:"联系电话", 
			//					email:"电子邮件", 
			//					loanAmount:"贷款金额", 
			//					loanDate:"贷款日期", 
			//					loanTerm:"贷款期限", 
			//					overAmount:"逾期金额", 
			//					state:"还款状态", 
			//					overDate:"逾期开始日期", 
			//					publishDate:"发布日期", 
			//					publishSource:"信息来源", 
			//				}			
			//			},
			/*----------------------企业工商法院信息（B5）----------------------*/
			enterprise_info: {
				name: "工商信息",
				ID: "B5",
				cCount: 3,
			},
			personList: {
				name: "企业主要管理人员信息",
				cCount: 3,
				pName: {
					perName: "人员姓名",
					position: "职务",
				}
			},
			shareholderList: {
				name: "企业股东及出资信息",
				cCount: 3,
				pName: {
					shaName: "股东名称",
//					fundedRatio: "占比",
					subConAm: "认缴出资额（万元）",
					regCapCur: "币种",
					conDate: "出资日期",
				}
			},
			punishBreakList: {
				name: "失信未执行信息",
				cCount: 20,
				pName: {
					age: "年龄",
					area: "省份",
					card: "身份证号/工商注册号",
					caseCode: "案号",
					courtName: "执行法院",
					dishonestyType: "失信被执行人为具体情形",
					duty: "确定的义务",
					focusNumber: "关注次数",
					gender: "性别",
					gistId: "执行依据文号",
					gistUnit: "执行依据单位",
					idCardIssued: "身份证原始发地",
					legalperson: "法定代表人/负责人姓名",
					name: "被执行人姓名/名称",
					performance: "被执行人的履情况",
					performedPart: "已履行",
					publishDate: "公布时间",
					regDate: "立案时间",
					type: "失信人类型",
					unperformPart: "未履行",
				}
			},
			aliCreditList: {
				name: "阿里欠贷信息",
				cCount: 12,
				pName: {
					age: "年龄",
					area: "省份",
					card: "身份证号/企业注册号",
					debtLimit: "欠款额度",
					defaultsSituation: "违约情况",
					gender: "性别",
					idCardIssued: "身份证原始发地",
					legalperson: "法定代表人",
					loanExpirationTime: "贷款到期时间",
					loanPeriod: "贷款期限",
					name: "欠贷人姓名/名称",
					taobaoAccount: "淘宝账户",
				}
			},
			enterpriseInfo: {
				name: "企业工商注册信息",
				cCount: 17,
				pName: {
					regNo: "注册号",
					entName: "企业名称",
					entStatus: "经营状态",
					entType: "企业(机构)类型",					
					frName: "法定代表人姓名",
					regOrg: "登记机关",
					regCap: "注册资本（万元）",
					regCapCur: "币种 （人民币、美元）",
					esDate: "开业日期",
					opFrom: "经营期限自",
					opTo: "经营期限至",					
					ancheYear: "最后年检年度",
					revDate: "吊销日期",
					canDate: "注销日期",
					dom: "住址",					
					abuItem: "许可经营项目",
					opScope: "经营(业务)范围",					
					
//					cbuItem: "一般经营项目",					
//					industryCo: "经济行业代码 ",
//					industryPhy: "行业门类代码",					
//					opScoAndForm: "经营(业务)范围及方式",
				}
			},
			punish_info: {
				name: "失信执行信息",
				cCount: 4,
				pName: {
					all_punish_count: "失信次数",
					all_punish_amount: "涉及金额（元）",	
					punish_count: "失信未执行次数",
					punish_amount: "失信未执行金额（元）",					
				}
			},			
		};

		return utili;
	}
};
var thisUtilities = Utilities.createNew();